package test.seasoning;

import test.Beverage;
import test.CondimentDecorator;

/**
 * @Author: Wyndem
 * @Description: 糖
 * @Date: Created in  2019-01-21 20:55
 * @Modified By:
 */
public class Candy extends CondimentDecorator {

    public Candy(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+"，白糖";
    }

    @Override
    public Double cost() {
        return beverage.cost()+0.5;
    }
}
